const USER_PREFIX = 'blogdemo_user_'
const USER_ID = `${USER_PREFIX}id`
const USER_NAME = `${USER_PREFIX}name`

const set = (key, data) => {
    localStorage.setItem(key, data)
}

const get = (key) => localStorage.getItem(key)

export default {
    set,
    get,
    USER_ID,
    USER_NAME,
}